package com.xuan.yrmanage.domain.view;


import com.xuan.yrmanage.domain.Permission;

import java.util.List;

/**
 * FileName: Class
 * Author:   xuan zongjun
 * Date:     2020/3/17 9:17
 * Description: 菜单显示属性结构
 */

public class MenuView {
    private Integer id;//菜单ID

    private String name;//菜单名称

    private List<MenuView> childMenuList;

    public List<MenuView> getChildMenuList() {
        return childMenuList;
    }

    public void setChildMenuList(List<MenuView> childMenuList) {
        this.childMenuList = childMenuList;
    }

    //菜单包含的权限
    private List<Permission> permissionList;

    public List<Permission> getPermissionList() {
        return permissionList;
    }

    public void setPermissionList(List<Permission> permissionList) {
        this.permissionList = permissionList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

}